import React from 'react';

export const HomeIcon = props => (
  <svg width={33} height={32} fill="none" viewBox="0 0 33 32" {...props}>
    <path
      fill="#fff"
      fillRule="evenodd"
      d="M16.266 8.778a.703.703 0 00-.994 0L7.97 16.081a.703.703 0 00.497 1.2h1.302v4a1 1 0 001 1h10a1 1 0 001-1v-4h1.303c.626 0 .94-.758.497-1.2l-7.303-7.303z"
      clipRule="evenodd"
    />
  </svg>
);

export const CSBIcon = props => (
  <svg width={33} height={32} fill="none" viewBox="0 0 33 32" {...props}>
    <path
      fill="#B8B9BA"
      fillRule="evenodd"
      d="M16.205 15.85v8.095a.65.65 0 00.36-.103l6.482-3.703c.256-.147.36-.374.36-.67v-7.51a.63.63 0 00-.103-.36l-6.891 3.894a.412.412 0 00-.208.357zm3.601 4.649c0 .205-.077.308-.257.411l-2.16 1.235c-.155.102-.36.051-.36-.155v-5.504c0-.147.129-.338.257-.411l4.938-2.83c.137-.079.257.048.257.206v2.932a.396.396 0 01-.206.36l-2.212 1.184c-.134.071-.257.208-.257.36v2.212z"
      clipRule="evenodd"
    />
    <path
      fill="#F2F2F2"
      fillRule="evenodd"
      d="M9.003 19.47v-7.51c0-.296.155-.574.412-.72l6.276-3.55c.135-.072.36-.103.514-.103.154 0 .393.038.515.103l6.224 3.55c.123.072.29.24.36.36l-6.893 3.909a.415.415 0 00-.206.36v8.076a.829.829 0 01-.411-.103L9.465 20.19c-.256-.147-.463-.425-.463-.72zm.926-6.019v2.932c0 .206.052.309.258.412l2.16 1.234a.424.424 0 01.257.412v2.058c0 .205.052.308.257.411l2.16 1.235c.207.102.361.051.361-.155v-5.504a.424.424 0 00-.257-.411l-4.836-2.778c-.154-.103-.36-.052-.36.154zm8.437-3.498l-1.904 1.08a.467.467 0 01-.514 0l-1.903-1.08a.426.426 0 00-.412 0l-2.366 1.338c-.206.103-.206.308 0 .411l4.732 2.727a.416.416 0 00.412 0l4.732-2.727c.155-.103.206-.308 0-.411l-2.366-1.338a.426.426 0 00-.411 0z"
      clipRule="evenodd"
    />
  </svg>
);

export const GitHubIcon = props => (
  <svg width={32} height={32} fill="none" viewBox="0 0 32 32" {...props}>
    <g>
      <path
        fill="#fff"
        d="M22.927 12.365a8.069 8.069 0 00-2.912-2.984A7.678 7.678 0 0016 8.28c-1.451 0-2.79.366-4.016 1.1a8.067 8.067 0 00-2.911 2.984A8.177 8.177 0 008 16.481c0 1.787.509 3.394 1.526 4.821 1.017 1.427 2.332 2.415 3.943 2.963.187.036.326.01.416-.075a.423.423 0 00.136-.32l-.006-.576a97.12 97.12 0 01-.005-.95l-.24.042c-.152.029-.345.04-.578.037a4.291 4.291 0 01-.723-.074 1.598 1.598 0 01-.698-.32 1.354 1.354 0 01-.459-.657l-.104-.246a2.677 2.677 0 00-.328-.544c-.15-.2-.3-.335-.453-.406l-.073-.054a.769.769 0 01-.135-.128.592.592 0 01-.094-.15c-.02-.05-.004-.09.052-.122.056-.032.156-.048.302-.048l.208.032c.14.028.311.114.516.256.205.142.373.328.505.555.16.292.352.515.578.668.226.153.453.23.683.23.229 0 .427-.019.593-.054.167-.036.323-.09.469-.16.062-.477.233-.844.51-1.1a6.97 6.97 0 01-1.067-.192 4.192 4.192 0 01-.98-.417 2.82 2.82 0 01-.838-.715c-.222-.285-.405-.659-.547-1.122-.142-.462-.213-.996-.213-1.601 0-.862.274-1.595.823-2.2-.257-.648-.233-1.374.072-2.178.202-.064.5-.016.896.144.396.16.686.297.87.411.184.114.332.21.443.289a7.227 7.227 0 012-.278c.687 0 1.354.092 2 .277l.396-.256c.27-.17.59-.327.958-.47.368-.142.65-.181.844-.117.312.804.34 1.53.083 2.178.549.605.823 1.339.823 2.2 0 .605-.071 1.14-.213 1.607-.143.466-.326.84-.552 1.12a2.927 2.927 0 01-.844.711 4.203 4.203 0 01-.98.416c-.315.086-.671.15-1.067.193.361.32.542.826.542 1.516v2.253a.43.43 0 00.13.32c.087.085.224.11.411.075 1.611-.548 2.926-1.536 3.943-2.963S24 18.268 24 16.48c0-1.488-.358-2.86-1.073-4.116z"
      />
    </g>
  </svg>
);

export const AlgoliaIcon = props => (
  <svg width={118} height={33} fill="none" viewBox="0 0 572 64" {...props}>
    <title>Search by Algolia</title>
    <path
      fill="#fff"
      d="M16 48.3c-3.4 0-6.3-.6-8.7-1.7A12.4 12.4 0 0 1 1.9 42C.6 40 0 38 0 35.4h6.5a6.7 6.7 0 0 0 3.9 6c1.4.7 3.3 1.1 5.6 1.1 2.2 0 4-.3 5.4-1a7 7 0 0 0 3-2.4 6 6 0 0 0 1-3.4c0-1.5-.6-2.8-1.9-3.7-1.3-1-3.3-1.6-5.9-1.8l-4-.4c-3.7-.3-6.6-1.4-8.8-3.4a10 10 0 0 1-3.3-7.9c0-2.4.6-4.6 1.8-6.4a12 12 0 0 1 5-4.3c2.2-1 4.7-1.6 7.5-1.6s5.5.5 7.6 1.6a12 12 0 0 1 5 4.4c1.2 1.8 1.8 4 1.8 6.7h-6.5a6.4 6.4 0 0 0-3.5-5.9c-1-.6-2.6-1-4.4-1s-3.2.3-4.4 1c-1.1.6-2 1.4-2.6 2.4-.5 1-.8 2-.8 3.1a5 5 0 0 0 1.5 3.6c1 1 2.6 1.7 4.7 1.9l4 .3c2.8.2 5.2.8 7.2 1.8 2.1 1 3.7 2.2 4.9 3.8a9.7 9.7 0 0 1 1.7 5.8c0 2.5-.7 4.7-2 6.6a13 13 0 0 1-5.6 4.4c-2.4 1-5.2 1.6-8.4 1.6Zm35.6 0c-2.6 0-4.8-.4-6.7-1.3a13 13 0 0 1-4.7-3.5 17.1 17.1 0 0 1-3.6-10.4v-1c0-2 .3-3.8 1-5.6a13 13 0 0 1 7.3-8.3 15 15 0 0 1 6.3-1.4A13.2 13.2 0 0 1 64 24.3c1 2.2 1.6 4.6 1.6 7.2V34H39.4v-4.3h21.8l-1.8 2.2c0-2-.3-3.7-.9-5.1a7.3 7.3 0 0 0-2.7-3.4c-1.2-.7-2.7-1.1-4.6-1.1s-3.4.4-4.7 1.3a8 8 0 0 0-2.9 3.6c-.6 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-5.7 2h-.5a10 10 0 0 1-9.2-14c1.4-3.7 5-6.3 9-6.3h6.4v18.3zm152.3-26.5h13.5c.5 0 .8.3.8.7v33.7c0 .4-.3.7-.8.7h-6.4a.7.7 0 0 1-.8-.7v-7.4c-1.2 4-4.8 7.4-9 8h-.1a4.2 4.2 0 0 1-.5.1h-.9a10.3 10.3 0 0 1-7-2.6c-4-3.3-6.5-8.4-6.5-14.2 0-3.7 1-7.2 3-10 3-5 8.5-8.3 14.7-8.3zm.6 28.4c2.2-.1 4.2-.6 5.7-2V21.7h-6.3a9.8 9.8 0 0 0-9 6.4 10.2 10.2 0 0 0 9.1 13.9h.5zM452.8 13.4c-6.2 0-11.7 3.3-14.8 8.2a18.5 18.5 0 0 0 3.6 24.3 10.4 10.4 0 0 0 13 .6c2.2-1.5 3.8-3.7 4.5-6.1v7.8c0 2.8-.8 5-2.2 6.3-1.5 1.5-4 2.2-7.5 2.2l-6-.3c-.3 0-.7.2-.8.5l-1.6 5.5c-.1.4.1.8.5 1h.1c2.8.4 5.5.6 7 .6 6.3 0 11-1.4 14-4.1 2.7-2.5 4.2-6.3 4.5-11.4V14.2c0-.5-.4-.8-.8-.8h-13.5zm6.3 8.2v18.3a9.6 9.6 0 0 1-5.6 2h-1a10.3 10.3 0 0 1-8.8-14c1.4-3.7 5-6.3 9-6.3h6.4zM291 31.5A32 32 0 0 1 322.8 0h30.8c.6 0 1.2.5 1.2 1.2v61.5c0 1.1-1.3 1.7-2.2 1l-19.2-17a18 18 0 0 1-11 3.4 18.1 18.1 0 1 1 18.2-14.8c-.1.4-.5.7-.9.6-.1 0-.3 0-.4-.2l-3.8-3.4c-.4-.3-.6-.8-.7-1.4a12 12 0 1 0-2.4 8.3c.4-.4 1-.5 1.6-.2l14.7 13.1v-46H323a26 26 0 1 0 10 49.7c.8-.4 1.6-.2 2.3.3l3 2.7c.3.2.3.7 0 1l-.2.2a32 32 0 0 1-47.2-28.6z"
    />
  </svg>
);

export const CloseIcon = props => (
  <svg width={12} height={12} fill="none" viewBox="0 0 12 12" {...props}>
    <path
      fill="#343434"
      d="M12 1.09L10.91 0 6 4.91 1.09 0 0 1.09 4.91 6 0 10.91 1.09 12 6 7.09 10.91 12 12 10.91 7.09 6 12 1.09z"
    />
  </svg>
);
